#ifndef FAVORISMODEL_H
#define FAVORISMODEL_H
#include <QtSql>
#include <QAbstractListModel>


class favorismodel : public QAbstractListModel
{
    Q_OBJECT
    enum {DenominationRole = Qt::UserRole+1 , CodeRole};
public:
    explicit favorismodel(QObject *parent = 0);

    int rowCount(const QModelIndex &parent) const;
    QVariant data(const QModelIndex &index, int role) const;
    Q_INVOKABLE void loadfavoris(const QString& filter);


private:
    QList<QSqlRecord> mDatas;

    
};

#endif // FAVORISMODEL_H


